package com.example.shengyin.dao;

import com.example.shengyin.entity.Job;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface  JobMapper {


    Job selectById(@Param("id")Integer id);

    int insert(Job job);

    int update(Job job);

    int deleteById(@Param("id") Integer id);

    //删除多个
    int deleteByIds(@Param("ids") String ids);

    public List<Job> jobList(@Param("page")int page, @Param("limit")int limit, @Param("jobtitle")String jobtitle, @Param("pos") String pos,
                          @Param("jobtype") String jobtype,  @Param("pt")String pt);
    public int countTotall(@Param("jobtitle")String jobtitle, @Param("pos") String pos,
                     @Param("jobtype") String jobtype,  @Param("pt")String pt);

    Job selResumeByJobId(Integer id);


//    List<Job> Joblist(@Param("jobtitle") String jobtitle, @Param("pos") String pos, @Param("jobtype") String jobtype, @Param("start") Date start, @Param("end") Date end, @Param("pageNo") int pageNo,
//                      @Param("pageSize") int pageSize);
//
//    int findTotal(@Param("jobtitle") String jobtitle, @Param("pos") String pos, @Param("jobtype") String jobtype, @Param("start") Date start, @Param("end") Date end);



}
